﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Com.Seezt.Skins;
using Components;
using UI.Lib;
using UI.Lib.Factory;
using System.Collections;

namespace UI.BuyManagement
{
    public partial class FrmAcceptEdit : UI.ParentForm.BaseMedit
    {
        string key = null;
        public FrmAcceptEdit(string modulecode, string action, string pk = null)
            : base(modulecode, action)
        {
            InitializeComponent();

            this.key = pk;

            //回写的方法
            this.SaveCallFuntion = "Sto8a00Manager$MeditSaveData"; //保存的方法
            IsAfterSaveCloseWin = false;
            this.allowDtlEmpty = false;
            this.MaxStateFlag = true;//打开页面后让窗口最大化
            base.Text = "收货详情";

            LoadData();
        }

        //加载修改数据
        private void LoadData()
        {
            if (!string.IsNullOrEmpty(this.key))
            {
                base.LoadEditData(null, string.Format(" f.listid ='{0}' ", this.key));
                base.LoadDtlData(null, string.Format(" f.dtldocid ='{0}' ", this.key));
            }
        }

        protected override void PageInit()
        {
            this.tbSummary.DefaultWidth = 130;
        }
    }
}
